package com.xgggh.redpack.domain.auth;

import android.os.Parcel;
import android.os.Parcelable;

public class Profile  implements Parcelable {

    private int id;
    private int accountId;
    private String nickName;
    private String slogan;
    private String headFile;
    private int level;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAccountId() {
        return accountId;
    }

    public void setAccountId(int accountId) {
        this.accountId = accountId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public String getHeadFile() {
        return headFile;
    }

    public void setHeadFile(String headFile) {
        this.headFile = headFile;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeInt(this.accountId);
        dest.writeString(this.nickName);
        dest.writeString(this.slogan);
        dest.writeString(this.headFile);
        dest.writeInt(this.level);
    }

    public Profile() {
    }

    protected Profile(Parcel in) {
        this.id = in.readInt();
        this.accountId = in.readInt();
        this.nickName = in.readString();
        this.slogan = in.readString();
        this.headFile = in.readString();
        this.level = in.readInt();
    }

    public static final Creator<Profile> CREATOR = new Creator<Profile>() {
        @Override
        public Profile createFromParcel(Parcel source) {
            return new Profile(source);
        }

        @Override
        public Profile[] newArray(int size) {
            return new Profile[size];
        }
    };
}
